package com.msh.business.contract;

import lombok.Data;

import java.io.Serializable;
import java.util.Arrays;

@Data
public class PayComplete implements Serializable {
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 订单金额
     */
    private Integer amount;
    /**
     * 售货机编号
     */
    private String innerCode;
    /**
     * 商品Id
     */
    private Long skuId;
    /**
     * 支付方式
     */
    private int payType;

        public static int[] twoSum(int[] nums, int target) {
            for(int i = 0;i<=nums.length -1;i++) {
                for(int j = i + 1;j <= nums.length -1;j++) {
                    if(nums[i] + nums[j] == target) {return new int[]{i,j};}
                }
            }
            return new int[]{};
        }

    public static void main(String[] args) {
        System.out.println(Arrays.toString(twoSum(new int[]{3,3},6)));
    }
}
